public class Controller {
    private student model;
    private View view;

    public Controller(student model, View view){
        this.model = model;
        this.view = view;
    }

    public void setStudentName(String name){
        model.setName(name);
    }

    public String getStudentName(){
        return model.getName();
    }

    public void setStudentRollNo(String ID){
        model.setId(ID);
    }

    public String getStudentRollNo(){
        return model.getId();
    }

    public void updateView(){
        view.StudentPrint(model.getId(), model.getName(), model.getGender() );
    }

    public void setStudentGender(char gender){
        model.setGender(gender);
    }
}
